package com.hushan.service.impl;

import com.hushan.annotion.LogMethod;
import com.hushan.service.ShowService;
import org.springframework.stereotype.Component;

/**
 * Created by hushan on 2017/6/17.
 */
@Component("ShowService")
public class ShowServiceImpl implements ShowService{

    public void showBefore(){
        System.out.println("showBefore方法调用**************");
    }

    public void showError(){
        System.out.println("showError方法调用****************");
    }

    public void showEnd(){
        System.out.println("showEnd方法调用******************");
    }

    @LogMethod(name = "展示方法", opertype = "1", description = "展示方法调用")
    public void show() {
        showBefore();
        showEnd();
    }
}
